﻿using MijnMultiOSRSSApp.Common.Helpers;
using System;
using System.Windows.Data;

namespace MijnMultiOSRSSApp.Common.Converters
{
    public class StripHtmlConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value == null)
                return null;

            return HtmlParser.ExtractString(value as string);
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
